package com.ktgj.train.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 地区信息对象 train_areainfo
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
public class TrainAreainfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区信息ID */
    private Long id;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String code;

    /** 上级地区编码 */
    @Excel(name = "上级地区编码")
    private String parentcode;

    /** 地区等级 */
    @Excel(name = "地区等级")
    private Long level;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String name;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentcode(String parentcode) 
    {
        this.parentcode = parentcode;
    }

    public String getParentcode() 
    {
        return parentcode;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("parentcode", getParentcode())
            .append("level", getLevel())
            .append("name", getName())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .toString();
    }
}
